package com.zpp.wedding_admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpp.wedding_admin.entity.Join;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JoinMapper extends BaseMapper<Join> {
    boolean joinAdd(@Param("activityId") Integer activityId, @Param("userId") Integer userId);

    List<Join> getActivityById(Integer id);

    List<Join> getAllUser(Integer id);
}
